package com.itheima.object1;

public class TestStudent {
    public static void main(String[] args) {
        //创建对象
        Student stu = new Student();
        System.out.println(stu.name);
        System.out.println(stu.age);

        //给对象的成员变量赋值
        stu.name = "张三";
        stu.age = 18;
        System.out.println(stu.name);
        System.out.println(stu.age);
        System.out.println("null");


        stu.study();

        System.out.println(stu);

        eat();
    }
    public static void eat(){
        System.out.println(" nihao ");


    }


}
